﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HTML5Video.Video
{
    public partial class DataPage1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            String tag = Request["tag"] ?? String.Empty;
            if (tag == "getdata")
            {
                GetJson();
            }
        }

        public void GetJson()
        {
            List<Temp> list = new List<Temp>();

            Temp t1 = new Temp();
            t1.Chaptertitle = "chapter - 01";
            t1.Chaptercontent = @"<strong>ANNOUNCER:</strong>  Ladies and gentlemen, please welcome Microsoft general manager, investor relations, Bill Koefoed.  (Applause.) <br/><br/>
              <strong>BILL KOEFOED:</strong>  Hi.  Good afternoon, everybody.  Hopefully you're as excited about those new Xbox games as I was.  Just even sitting backstage and looking at that “Forza 4” trailer, I just can't wait until that comes out.  And I know some of you are car fans, and I know you'll be easily early in line for that one.  So, those are both coming this holiday season.<br/><br/>
                Thank you also for joining us at this Financial Analyst Meeting this afternoon.  This is the first time that we've done this in connection with our developer conference, and hopefully most of you had the opportunity to attend BUILD over the last 48 hours.  We couldn't be more excited about the reaction that we've received, and again having you all be part of that experience, as well as our Financial Analyst Meeting, was part of our intention and really appreciate you making the trip here to this different venue for the first time.";
            t1.Index = 0;
            t1.Time = "0";

            Temp t2 = new Temp();
            t2.Chaptertitle = "chapter - 02";
            t2.Chaptercontent = "As we get started, I want to remind you that this presentation may contain statements that are forward-looking.  These statements are based on current expectations and assumptions that are subject to risks and uncertainties, which may cause actual results to differ materially because of factors in this presentation, and in management's discussion and analysis section of the company's most recent Form 10-K, Form 10-Q, or in other reports and filings with the Security and Exchange Commission.  We undertake no duty to update or revise any forward-looking statements, whether as a result of new information, future events, or otherwise.";
            t1.Index = 1;
            t1.Time = "30";

            Temp t3 = new Temp();
            t3.Chaptertitle = "chapter - 03";
            t3.Chaptercontent = @"As with last year, really as we were planning for the Financial Analyst Meeting, solicited your advice on what are the things that you want to hear about, what are the things that you really want to make sure that we address, and let's just briefly talk through that.<br/><br/>
                You've given me feedback, given the team feedback that you really want to hear more about Windows, you want to hear about what the strategy is around Windows, what's our strategy around tablets and the like, and obviously, as I mentioned earlier, being part of the BUILD conference experience was certainly something that we intended to help with that.<br/><br/>
                Just, I couldn't be happier, by the way, with the reaction.  My favorite, there's been -- I know there's some press here.  My favorite posting was from a person named Zach Epstein, who posted on BUILD yesterday.  I'm going to read some excerpts of this to you.  <br/><br/>
                Microsoft executives took the stage at the annual BUILD developer conference on Tuesday to give the world its first real look at the future of the Windows operating system.  The reception, as you've likely read by now, has been overwhelmingly positive.  PCs are not going away.  They will continue to be the primary means of computing for businesses and consumers alike.  Tablets are not going away either.  They will continue to provide a much more intuitive way to interact with the consumer electronics device.  Microsoft's vision, however, unifies these devices.  The technology exists to enable users to carry a single device that is as portable and usable as a tablet but also as powerful and capable as a PC.  <br/><br/>
                This person writes:  “The iPad was only the beginning.  If the iPad ushered in the post-PC era, then welcome to the post-post-PC era.”<br/><br/>
                Certainly we're excited about the reaction that we've received at the BUILD conference.  <br/><br/>
                And for those who haven't -- I know that many of you are looking forward to touching and feeling the tablet.  For those who haven't had that experience, over at the conference center in Hall D, at the Samsung booth, there is a number of “Windows 8” tablets that you can use and experience.  And if you haven't had a chance to do that, then you should make your way over there either after this conference this afternoon or, frankly, it's going to be open until Friday if you're sticking around in the area.  <br/><br/>
                And we'll talk more about Windows as we go forward throughout today.  <br/><br/>
                The next question, obviously, that you ask is Windows Phone, how have we been making progress, what progress have we made, what's our future around Windows Phone, and we'll spend some time talking about that this afternoon.  <br/><br/>
                Xbox, I promise you we'll talk more about XBox than just the videos, which, as I mentioned earlier before, were quite exciting, but what's the future of the living room and how do we feel about our opportunity to take what we've leveraged in the living room with console, extend that to the social experience with XBox Live, with natural user interface, as we have with Kinect, and we're going to spend some time talking about that.<br/><br/>
                Windows Server and Azure:  A lot of you asked me the question, what's our future in the cloud, how are we attempting to leverage that.  Well, you heard a little bit of that from Satya today at BUILD.  Satya is going to join us a little bit later this afternoon and talk more about our strategy around the cloud and why we think we have some unique assets and a unique proposition to basically capture that opportunity that we think is quite significant.<br/><br/>
                I get regularly asked about Office.  We had a great year in Office, I think as most of you know.  Questions I get from you are, have we seen the best or is there more.  Obviously we have just launched Office 365 here in June, and you'll hear more this afternoon about what we see the opportunities to be in productivity and in the cloud, and I think you'll be excited about our future opportunity there.</br>
                I get questions about search and Bing.  Dr. Qi Lu is going to be here this afternoon to talk about our search vision, why we think it's so important, why we think that we have a strategy to compete in that market.<br/><br/>
                And then finally, Dynamics, which, as you probably know, we've had some significant launches in Dynamics over the past six months, both with AX 2012, as well as with CRM Online, and we feel like we've got a competitive offering in the marketplace that ties in nicely with Office, and we'll talk more about Dynamics here in the next couple hours.</br>";
            t3.Index = 2;
            t3.Time = "60";

            Temp t4 = new Temp();
            t4.Chaptertitle = "chapter - 04";
            t4.Chaptercontent = @"So, we've taken the afternoon and put it into two different kind of halves, shall we say, or two different sections.  The first, we're going to talk about our momentum today, what is it that we're seeing in the market, I'll talk some about our financial results and then be followed by Kevin Turner, who's going to talk about our operating momentum — what is it that we're seeing with customers in the marketplace today.  You obviously saw our great fourth quarter results.  That's based not only on our current products in market but also the roadmap that our customers see with us, and Kevin is going to talk about that.<br/><br/>
                And then after Kevin, we're going to spend some time talking about looking forward, looking at the opportunity that we see in the marketplace, in technology, and frankly with our products.  <br/><br/>
                And Peter is going to start with that.  Then, as I mentioned, Qi Lu will talk about search as part of that opportunity; Satya is going to talk about the cloud as part of that opportunity; and then Steve's going to wrap up with our overall point of view and hit on things like Office and the living room and some of the other areas that I also mentioned were some of your questions. <br/><br/>
                We're going to wrap up today with a Q＆A session, and then after that a reception, which will be held right outside.  <br/><br/>
                Also let me offer, you're going to be receiving an e-mail that will ask for your feedback and survey results.  As with last year, we would like you to please fill that out, some feedback on the individual presentations.  We obviously aspire to make this format better every year, and so your feedback is super helpful in terms of helping us to make sure that we're improving our Financial Analyst Meeting.  <br/><br/>
                As with last year and the year before, we have an incentive.  So, if you fill out your survey at the end of the session, we will be drawing a random name and giving a prize out to one of you.  It's an Xbox 360 for those of you who want to go out and buy those games that we have coming out this holiday season.  <br/><br/>
                So, that's our agenda.  ";
            t4.Index = 3;
            t4.Time = "80";

            Temp t5 = new Temp();
            t5.Chaptertitle = "chapter - 05";
            t5.Chaptercontent = @"As I get started, let me talk about our FY '11 results.  We had another great year of double-digit revenue growth.  As I mentioned earlier, we have strong business demand for the Microsoft platforms and applications.  That's not just for products that are in market today.  As we've been out in market talking with our customers, it's really about our product plus the roadmap that they see, particularly our roadmap in the cloud, as I've talked about in some of our earnings -- some of our earnings calls.  <br/><br/>
                We had great consumer adoption this year.  Office 2010 remains the fastest-selling consumer version of Office that we've ever had.  And we've had great response in the marketplace to Office 2010.  It's funny just to think back, as I was talking to you last year at this event, Kinect wasn't in market yet.  And it feels like it's been in market a long time, but yet it's been in market for less than a year.  And it just has completely revolutionized gaming, completely revolutionized our share and our momentum within Xbox.  <br/><br/>
                And then, frankly, partnership momentum is also something that we saw a lot of these last 12 months.  The Yahoo-Bing relationship, we completed the integration of that back in November.  We announced the Nokia partnership in February; we announced the Facebook partnership in the last several months.  So, partnerships are certainly something that we feel is a core part of our strategy and the momentum that we've had in the last 12 months.  <br/><br/>
                The year was also measured by operating expense discipline that continues to be one that drives year-over-year margin expansion.  We continue to be focused on that, and margin expansion is certainly something that we saw this last year.  <br/><br/>
                It was the second year of EPS growth greater than 25 percent, and we couldn't be happier with our results over the last 12 months as it relates to our earnings per share. <br/><br/>
                Record cash flow from operations, dividends and buybacks of $16.9 billion, which was up 10 percent over FY '10, and during this whole period, while we've created this great earnings results, we have also been investing in the platform and the cloud, as we see those as huge opportunities for long-term growth; so, both producing great results and investing for the future is part of what we see as an important part of our strategy.  ";
            t5.Index = 4;
            t5.Time = "120";

            Temp t6 = new Temp();
            t6.Chaptertitle = "chapter - 06";
            t6.Chaptercontent = "As you look at the individual business divisions, we had double-digit revenue growth in every single one of our divisions except for Windows, which frankly came off a record FY '10.  So, if you look all up at the business, we had almost $70 billion of revenue, up 12 percent, operating expenses up 5 percent, which again drove phenomenal margin expansion and earnings per share.  ";
            t6.Index = 5;
            t6.Time = "180";

            Temp t7 = new Temp();
            t7.Chaptertitle = "chapter - 07";
            t7.Chaptercontent = @"With financials, we've had a number of great momentum wins during this last year.  Interestingly enough, within the last 12 months, we've only just launched Windows Phone.  That's been in market for about nine months at this point, and obviously have some work to do, but we feel like we have a great product in market.  <br/><br/>
                As I mentioned, it's been less than 12 months with Kinect.  We started to talk to you about Windows 8 just last January at CES, and obviously you've learned more over the last nine months at the All Things D conference -- I know Kara is here somewhere -- as well as BUILD yesterday. <br/><br/>
                It was just in the last eight months that we launched the relationship with Nokia, as I said.  The Skype purchase was announced in May.  We're hopeful that's going to be completed by the end of this calendar year.  <br/><br/>
                And then, frankly, Office 365 just launched at the end of June. <br/><br/>
                We feel like we've had a lot of great wins, a lot of great momentum, and things that we're proud of both on the financial side, as well as on the product and momentum side over this last fiscal year. ";
            t7.Index = 6;
            t7.Time = "240";

            Temp t8 = new Temp();
            t8.Chaptertitle = "chapter - 08";
            t8.Chaptercontent = @"As I mentioned, I gave a little bit of the momentum on our financial results.  Now what I'd like to do is introduce our chief operating officer, who is going to talk about our operating momentum.  This is the person who was responsible for the record unearned revenue balance that we had at the end of June at over $17 billion.  I know that was quite exciting and surprising for many of you.  <br/><br/>
                And so with that, I'd like to introduce our chief operating officer, Kevin Turner.  (Applause.)<br/><br/>
                END";
            t8.Index = 7;
            t8.Time = "350";

            list.Add(t1);
            list.Add(t2);
            list.Add(t3);
            list.Add(t4);
            list.Add(t5);
            list.Add(t6);
            list.Add(t7);
            list.Add(t8 );

            string url = "http://www.baidu.com";
            String str = CommonCs.Common.DataTableToJson(CommonCs.Common.ListToDataTable<Temp>(list));
            Response.Write("{content:" + str + ",url:'" + url + "'}");
        }
    }

    public class Temp
    {
        private string chaptertitle;

        public string Chaptertitle
        {
            get { return chaptertitle; }
            set { chaptertitle = value; }
        }
        private string chaptercontent;

        public string Chaptercontent
        {
            get { return chaptercontent; }
            set { chaptercontent = value; }
        }
        private string time;

        public string Time
        {
            get { return time; }
            set { time = value; }
        }
        private int index;

        public int Index
        {
            get { return index; }
            set { index = value; }
        }
    }
}